#include <stdio.h>
#include <stdlib.h>

int main( int argc, char *argv[] ){

    int x = atoi(argv[1]);

    int i, a[10];

    for( i=0; i<10; i++ ){
        a[i] = i + x;
    }

    FILE *fp = fopen(argv[2], "wb");
    fwrite(a, sizeof(int), 10, fp);
    fclose(fp);
    
    return 0;
}
